<template>
  <div>
    <div class="header-color">{{nowTime}}</div>
    <carousel></carousel>
  </div>
</template>

<script>
import carousel from '../components/Carousel/carousel'
import loggerService from '../common/services/logger'
import methods from '../common/services/methods'

export default {
  name: 'Dashboard',
  components: {
    carousel
  },
  data () {
    return {
      nowTime: "",
      msg: 'Welcome to Dashboard page.'
    }
  },
  created: function () {
    this.intervalInstance = setInterval(() => {
      this.nowTime = methods.getNowData();
    });
    this.nowTime = methods.getNowData();
  },
  destroyed: function () {
    clearInterval(this.intervalInstance);
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
